﻿
namespace MyFurion.Model
{
    /// <summary>
    /// 字典信息详情
    /// </summary>
    [SugarTable("Sys_DictDetail")]
    [Tenant(0)]
    public class DictDetailInfo:BaseEntity
    {
        /// <summary>
        /// 字典值编码
        /// </summary>
        [SugarColumn(IsNullable =true,ColumnDescription ="字典值编码")]
        public string DictItemCode { get; set; }
        /// <summary>
        /// 字典值名称
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "字典值名称")]
        public string DictItemName { get; set; }
        /// <summary>
        /// 停用启用状态
        /// </summary>
        [SugarColumn(ColumnDescription = "停用启用状态：0停用 1启用", DefaultValue = "1")]
        public EnumStatus Status { get; set; }
        /// <summary>
        /// 字典id
        /// </summary>
        [SugarColumn(ColumnDescription = "字典id")]
        public long DictId { get; set; }
        /// <summary>
        /// 字典信息
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(DictId))]
        public DictInfo DictData { get; set; }
    }
}
